<template>
  <view class="app">
    <!-- 顶部栏 -->
    <pageHeader :showFillView="false"></pageHeader>
    <!-- store -->
    <view
      :style="{
        marginTop: '44px',
      }"
    >
      {{ $store.state.user.cartCount }}
    </view>
  </view>
</template>

<script>
import pageHeader from './components/pageHeader.vue'
export default {
  components: {
    pageHeader,
  },
  data() {
    return {
      //顶部是否占位
      showFillView: {
        type: Boolean,
        default: true,
      },
    }
  },
  onload() {
    console.log('store数据', this.$store.state.user)
  },
}
</script>

<style lang="less"></style>
